#include<stdio.h>

double power(double n, int p);

int main(void)
{
    double x, xpow;
    int exp;

    printf("Enter a number and the positive integer power");
    printf(" to which\nthe number will be raised. Enter q");
    printf(" to quit.\n");
    while (scanf("%lf%d", &x, &exp) == 2)
    {
        xpow = power(x, exp);
        if (xpow == 1)
            printf("Undefine\r\n");/* code */
        else
        {
            printf("%.3f to the power %d is %.5f\n", x, exp, xpow);
            printf("Enter next pair of number or q to quit.\n"); 
        }
        
    }
    printf("Hope you enjoyed this power trip -- bye!\n");

    return 0;
}

double power(double n, int p)
{

}